package com.movitech.mobile.cz.base.purchase.service;

import com.movitech.mobile.cz.base.modules.controller.RestReturnResult;
import com.movitech.mobile.cz.base.purchase.bizvo.MyFormRequestVO;
import com.movitech.mobile.cz.base.purchase.entity.WFlowForm;
import com.movitech.mobile.cz.base.purchase.entity.ext.ExtWFlowForm;
import com.baomidou.mybatisplus.service.IService;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 * 流程表单主表 服务类
 * </p>
 *
 * @author Movitech Mobile
 * @since 2018-03-15
 */
public interface WFlowFormService extends IService<WFlowForm> {

	/**
	 * 获取招标文件基本信息
	 * @param flowFormId
	 * @return
	 */
	ExtWFlowForm getBiddingDocumentBaseInfoByFlowFormId(String flowFormId);

	ExtWFlowForm getExtByFormId(String formId);

	/**
	 * 流程表单新增
	 * @param wFlowForm
	 * @return
	 */
	public boolean saveWFlowForm(WFlowForm wFlowForm);

	/**
	 * 流程表单更新
	 * @param wFlowForm
	 * @return
	 */
	public boolean updateWFlowForm(WFlowForm wFlowForm);

	/**
	 * 外网招标管理列表查询
	 * @param request
	 * @param response
	 * @param
	 * @return
	 */
	public RestReturnResult<Object> getMyFormList(HttpServletRequest request, HttpServletResponse response, MyFormRequestVO myFormRequestVO);

	/**
	 * 根据表单id查询节点详情
	 * @param formId
	 * @return
	 */
	public RestReturnResult<Object> getBidNodeDetail(String formId);

	void clearContractById(String formId);
}
